﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DirectorateEdit.ascx.cs" Inherits="MockPrjTeam4.DirectorateEdit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Namespace="MockPrjTeam4.Entity" TagPrefix="uc1" %>
<style type="text/css">
        .txt
        {
            height: 20px;
            width: 200px;    
        }
        .txtExtend
        {
            height: 90px;
            width: 200px;    
        }
        .cbl
        {
            border: 1px solid black; 
            height: 120px;
            width: 250px;   
            overflow: scroll;
        }
        .btn
        {
            padding: 0 0 0 50px;    
        }
        .wrap
        {
            margin-top: 50px;
            }
        .valid
        {
            font-size: larger;
            font-weight: bold;
            color: red;
            }
</style>
<div class="valid">
    <asp:ValidationSummary HeaderText="You must enter " runat="Server" DisplayMode="SingleParagraph"
    ShowSummary="true" EnableClientScript="true"/>
</div>
<div runat="server" class="wrap">
        <asp:ScriptManager ID="ScriptManager1" runat="Server"></asp:ScriptManager>
        <asp:TabContainer ID="tcDep" runat="server" BorderColor="#999999" 
            Style="margin-left:50px;height: 550px; width: 870px" ActiveTabIndex="0" >
            <asp:TabPanel runat="Server" ID="tpDetails1">
                <HeaderTemplate>
                <span style="font-weight:bold">Details 1</span>
                </HeaderTemplate>
                <ContentTemplate>
                    <table border="0" width="100%" cellpadding="2px" cellspacing="2px">
                    	<tr>
                    		<td>Directorate Name<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtDirName" runat="server" CssClass="txt"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDirName"
                                ErrorMessage="Directorate Name " Display="None"></asp:RequiredFieldValidator>
                            </td>

                    	</tr>
                        <tr>
                    		<td>Directorate Short Description<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtDirShortDes" runat="server" CssClass="txtExtend"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDirShortDes"
                                ErrorMessage="Department Short Description " Display="None"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                            Type of Business<span style="color:Red">*</span>
                            <br />
                            <br />
                            SIC Code
                            
                            </td>
                            <td>
                                <asp:TextBox ID="txtTypeOfBusiness" runat="server" BackColor="#CCCCCC"
                                ClientIDMode="Static"></asp:TextBox>
                                <asp:HiddenField ID="hdfTypeOfBusinessId" runat="server" ClientIDMode="Static"/>
                                <asp:LinkButton ID="lkbtnTypeOfBusiness" runat="server" ForeColor="Blue" Font-Underline="true"
                                    OnClientClick="popup('PopupTypeofBusiness.aspx', 470, 400);" 
                                    >Look up</asp:LinkButton>
                                <br />
                                <asp:RequiredFieldValidator runat="Server" ControlToValidate="txtTypeOfBusiness"
                                ErrorMessage="Type of Business " Display="None"></asp:RequiredFieldValidator>
                                <br />
                                <br />
                                <asp:TextBox ID="txtSICCode" runat="server" BackColor="#CCCCCC"
                                ClientIDMode="Static">13100</asp:TextBox>
                            </td>
                    	</tr>
                        <tr>
                            <td>
                                Lead Contact
                                <br /><br />
                                Copy Address from
                            </td>
                            <td>
                                <asp:TextBox ID="txtContactName" runat="server" BackColor="#CCCCCC" ClientIDMode="Static"></asp:TextBox>
                                <asp:HiddenField ID="hdfContact" runat="server" ClientIDMode="Static"/>
                                <asp:LinkButton ID="LinkButton1" runat="server" ForeColor="Blue" Font-Underline="true"
                                    OnClientClick="popup('PopupContact.aspx', 600, 400);">Look up</asp:LinkButton>
                                <br />
                                <asp:RadioButton ID="rdoDirectorate" runat="server" Text="Directorate"/>&nbsp&nbsp&nbsp&nbsp&nbsp
                                <asp:RadioButton ID="rdoParent" runat="server" Text="Parent"/>
                            </td>
                    		<td>Directorate Full Description</td>
                            <td>
                                <asp:TextBox ID="txtDirFullDes" runat="server" CssClass="txtExtend"></asp:TextBox>
                            </td>
                    	</tr>
                        <tr>
                            <td>Address Line 1<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtAddLine1" runat="server" ClientIDMode="Static"></asp:TextBox>
                                <asp:LinkButton runat="Server" Text="Look up" ForeColor="blue" Font-Underline="true"
                                OnClientClick="popup('PopupAddress.aspx', 730, 450);"></asp:LinkButton>
                                <br />
                                <asp:RequiredFieldValidator runat="Server" ControlToValidate="txtAddLine1"
                                Display="None" ErrorMessage="Address Line 1 "></asp:RequiredFieldValidator>
                            </td>
                            <td>Phone Number<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtPhoneNumber" runat="server" CssClass="txt"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator runat="server" ControlToValidate="txtPhoneNumber"
                                ErrorMessage="Phone Number" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>Address Line 2</td>
                            <td>
                                <asp:TextBox ID="txtAddLine2" runat="server" CssClass="txt" ClientIDMode="Static"></asp:TextBox>
                            </td>
                            <td>Fax</td>
                            <td>
                                <asp:TextBox ID="txtFax" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Address Line 3</td>
                            <td>
                                <asp:TextBox ID="txtAddLine3" runat="server" CssClass="txt" ClientIDMode="Static"></asp:TextBox>
                            </td>
                            <td>Email</td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Postcode<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtPostcode" runat="server" ClientIDMode="Static"></asp:TextBox>
                                <asp:LinkButton ID="lkbtnPostcode" runat="server" Font-Underline="true"
                                ForeColor="Blue" OnClientClick="popup('PopupTypeofBusiness.aspx', 470, 400);">Look up</asp:LinkButton>
                                <asp:RequiredFieldValidator runat="Server" ControlToValidate="txtPostcode"
                                Display="None" ErrorMessage="Postcode"></asp:RequiredFieldValidator>
                            </td>
                            <td>Web Address</td>
                            <td>
                                <asp:TextBox ID="txtWebAdd" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Town/Village/City</td>
                            <td>
                                <asp:TextBox ID="txtTown" runat="Server" ClientIDMode="Static"
                                CssClass="txt" ></asp:TextBox>
                            </td>
                            <td>Charity Number</td>
                            <td>
                                <asp:TextBox ID="txtCharityNumber" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>County</td>
                            <td>
                                <asp:TextBox id="txtCounty" runat="server" ClientIDMode="Static"
                                CssClass="txt" />
                            </td>
                            <td>Company Number</td>
                            <td>
                                <asp:TextBox ID="txtCompanyNumber" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Nation/Country</td>
                            <td>
                                <asp:TextBox ID="txtCountry" runat="Server" ClientIDMode="Static"
                                CssClass="txt" ></asp:TextBox>
                            </td>
                            <td>
                            <asp:CheckBox ID="chkIsActive" runat="Server" Text="Is Active"/>
                        </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
    </div>
    <div class="btn">
            <asp:Label ID="lblMessage" runat="Server" ForeColor="red" Font-Bold="true"></asp:Label>
            <br /><br />
            <asp:Button ID="btnSave" runat="Server" Text="Save" OnClick="btnSave_Click"/>&nbsp
            <asp:Button ID="btnBack" runat="Server" Text="Back"
             OnClick="btnBack_Click" CausesValidation="false"/>
             <asp:HiddenField ID="hdfAddLine1" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfAddLine2" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfAddLine3" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfPostcode" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfAddressId" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfTownId" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfCountyId" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfCountryId" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfTown" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfCounty" runat="Server" ClientIDMode="Static"/>
             <asp:HiddenField ID="hdfCountry" runat="Server" ClientIDMode="Static"/>
    </div>
